﻿namespace Decode55
{
    /// <summary>
    /// TAG,Length,Value
    /// </summary>
    public class TLV
    {
        private string tag;

        private int length;

        private string value;

        public TLV(string tag, int length, string value)
        {
            this.length = length;
            this.tag = tag;
            this.value = value;
        }

        public string getTag()
        {
            return tag;
        }

        public void setTag(string tag)
        {
            this.tag = tag;
        }

        public int getLength()
        {
            return length;
        }

        public void setLength(int length)
        {
            this.length = length;
        }

        public string getValue()
        {
            return value;
        }

        public void setValue(string value)
        {
            this.value = value;
        }

        override
        public string ToString()
        {
            return "tag=[" + this.tag + "]," + "length=[" + this.length + "]," + "value=[" + this.value + "]";
        }
    }
}
